from selenium import webdriver
url = 'https://www.baidu.com/s?wd=python'

driver = webdriver.Chrome()

driver.get(url)

el_list = driver.find_elements_by_xpath('/html/body/div[1]/div[3]/div[1]/div[3]/div')

for el in el_list:
    print(el.text, el.get_attribute('href'))
